package com.fenxiangle.yueding.entity.bo;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.fenxiangle.yueding.feature.home.view.adapter.ExpandableItemAdapter;
import com.suozhang.framework.entity.bo.BaseEntity;

import java.util.List;

public class TranscctionBo extends AbstractExpandableItem<TranscctionBo.CommissionFormMapBean> implements BaseEntity, MultiItemEntity {

    /**
     * createTime : 2018-09
     * sum : 0
     * commissionFormMap : [{"createTime":"2018-09","transactionMount":"1","commissionType":"5"},{"createTime":"2018-09","transactionMount":"3000","commissionType":"5"},{"createTime":"2018-09","transactionMount":"3000","commissionType":"5"},{"createTime":"2018-09","transactionMount":"300","commissionType":"6"}]
     */

    private String createTime;
    private int sum;
    private List<CommissionFormMapBean> commissionFormMap;

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public List<CommissionFormMapBean> getCommissionFormMap() {
        return commissionFormMap;
    }

    public void setCommissionFormMap(List<CommissionFormMapBean> commissionFormMap) {
        this.commissionFormMap = commissionFormMap;
    }

    @Override
    public int getLevel() {
        return 0;
    }

    @Override
    public int getItemType() {
        return ExpandableItemAdapter.TYPE_LEVEL_0;
    }

    public static class CommissionFormMapBean implements MultiItemEntity, BaseEntity{
        /**
         * createTime : 2018-09
         * transactionMount : 1
         * commissionType : 5
         */

        private String createTime;
        private String transactionMount;
        private int commissionType;
        private String msg;

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getTransactionMount() {
            return transactionMount;
        }

        public void setTransactionMount(String transactionMount) {
            this.transactionMount = transactionMount;
        }

        public int getCommissionType() {
            return commissionType;
        }

        public void setCommissionType(int commissionType) {
            this.commissionType = commissionType;
        }

        @Override
        public int getItemType() {
            return ExpandableItemAdapter.TYPE_LEVEL_1;
        }
    }
}
